/**
 * 检测对象是否为promise
 *
 * @param  {*}  object - object to check
 * @returns {boolean}
 */
// @ts-ignore
export default function isPromise(object) {
  return object && typeof object.then === 'function';
}
